<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/pub/head_latest.inc"%>
<title>待办维护列表-${basePageTitle}</title>
</head>
<!-- 流程跟踪列表(内嵌到页面) -->
<body class="FrameWindow">
	<div class="title"><i class="fa fa-file-text-o"></i> 流程跟踪意见</div>
	<div class="frameBorder">
		<div class="cont-table offset-top-1">
			<div class="table-sheet">
				<table id="tb_directoryCollectMake"></table>
			</div>
		</div>
	</div>
	<!-- cont-table -->
	
  <script type="text/javascript">
      //列表结构
     	DirectoryCollectMake = {
		initTable: function(){
			$('#tb_directoryCollectMake').bootstrapTable({
	       		//data: DirectoryCollectMake.data,
	       		url: '${baseURL}/trace/proccesstracelist/listJSON.do?boid=${currentForm.boId}&flowId=${param.flowId}',
	       		sidePagination: "server",
	       		dataType:'json',
	       		dataField: 'Rows',
	       		totalField: 'Total',
	       		contentType:'application/x-www-form-urlencoded',
	       		queryParamsType:"undefined",
	            striped: true,                      //是否显示行间隔色
	            //pagination: true,					//显示分页信息
	            pageNumber:1,                       //初始化加载第一页，默认第一页
                //pageSize: 15,                       //每页的记录行数（*）
                //pageList: [15, 25, 50, 100],        //可供选择的每页的行数（*） 
    	        clickToSelect: true,                //是否启用点击选中行
	            uniqueId: "id",                 //每一行的唯一标识，一般为主键列
	            minimumCountColumns: 5,			//当列数小于此值时，将隐藏内容列下拉框
	            queryParams: function(params){
	       	        return{
	       	            //每页多少条数据
	       	            perPageSize: params.pageSize,
	       	            //请求第几页
	       	            pageNo:params.pageNumber,
	       	       		order:"asc"
	       	        }
	       	    },
	       		columns: [{
			                   field: 'nodeName',
			                   title: '环节',
			                   align: 'center',
			                   width: '180',
			               }, {
			                   field: 'fmtCreateTime',
			                   title: '到达时间',
			                   align: 'center',
			                   width: '150',
			               }, {
			                   field: 'fmtFinishTime',
			                   title: '处理时间',
			                   align: 'center',
			                   width: '150',
			               }, {
			                   field: 'creatorName',
			                   title: '处理人',
			                   align: 'center',
			                   width: '200',
			               }, {
			                   field: 'opinion',
			                   title: '处理意见',
			                   align: 'center',
			                   width: '250',
			               },{
			                   field: 'instanceId',
			                   title: 'instanceId',
			               },{
			            	   field: 'instanceName',
			            	   title: 'instanceName'
			               }]
			})
		},
		main: function(){
			var _this = DirectoryCollectMake;
			_this.initTable();
		},
      }
  </script>
  <script type="text/javascript">
  $(function () {
	  DirectoryCollectMake.initTable();
      $('#tb_directoryCollectMake').bootstrapTable('hideColumn', 'instanceName');
      $('#tb_directoryCollectMake').bootstrapTable('hideColumn', 'instanceId');
  }); 
  </script>
  </body>
  </html>